package com.betterwood.dragon.service;

import java.util.List;

import com.betterwood.dragon.dao.ChangeDao;
import com.betterwood.dragon.dao.SiteDao;
import com.betterwood.dragon.entity.Change;
import com.betterwood.dragon.entity.Record;
import com.betterwood.dragon.entity.Site;
import org.springframework.stereotype.Service;
import lombok.RequiredArgsConstructor;

@Service(value = "changeService")
@RequiredArgsConstructor
public class ChangeService {
    private final ChangeDao changeDao;

    public Change insert(Record beforeRec, Record afterRec) {
        return null;
    }

    public List<Change> findAll() {
        return changeDao.findAll();
    }

    public List<Change> findByQuery(Change change) {
        return changeDao.listByQuery(change);
    }

    // public Site findById(String slaveId) {
    // return siteDao.getOneById(slaveId);
    // }

    // public Site save(Site site) {
    // return siteDao.save(site);
    // }

    // // public Keyword findById(String id) {
    // // return keywordDao.getOneById(id);
    // // }
}